package com.zjcode.cdcer.config;

import java.util.Arrays;
import java.util.List;

/**
 * @ClassName:MConsts
 * @功能：
 * @author：wlei
 * @日期：2022/8/3-01:57
 **/
public interface MConsts {

    String URL_REGIONCODE_PREFIX = "TKMCodeCer:URL:REGIONCODE:";

    interface Common {

        String USER = "user";
        String Data = "data";
        String SKIP = "skip";
        String DELIMITER_CHARACTER = "|";
        String DELIMITER_CHARACTER_2 = ",";

        /**
         * 需要上报到详情数据上报表的诊断代码集合
         */
        List<String> DIAGNOSTIC_CODE_LIST = Arrays.asList("8",
                                                          "10",
                                                          "11",
                                                          "13",
                                                          "15",
                                                          "19",
                                                          "20",
                                                          "21",
                                                          "23",
                                                          "24",
                                                          "141",
                                                          "142",
                                                          "221",
                                                          "222");
    }

    interface SUB_DETAIL {

        /**
         * 食管
         */
        String SG = "sg";
        /**
         * 贲门
         */
        String BM = "bm";
        /**
         * 胃
         */
        String WD = "wd";
        /**
         * 食管集合数据(sg)
         */
        String ESOPHAGUS = "esophagus";
        /**
         * 贲门数据(bm)
         */
        String CARDIA = "cardia";
        /**
         * 胃集合数据(w)
         */
        String STOMACH = "stomach";
    }

    interface URL {

        // 报告单存放地址
        String REPORT_PATH = "reportFilePath";
        // 报告单url访问地址
        String REPORT_URL = "reportFileUrl";
        // 病理报告单存放地址
        String PATHOLOGY_PATH = "blReportFilePath";
        // 病理报告单url访问地址
        String PATHOLOGY_URL = "blReportFileUrl";
    }

    interface ENDOSCOPIC_DIAGNOSIS_TYPE {

        /**
         * 食管
         */
        String SG = "sg";
        /**
         * 贲门
         */
        String BM = "bm";
        /**
         * 胃
         */
        String WD = "w";
    }

    interface ENDOSCOPIC_DIAGNOSIS_STATUS {

        /**
         * 未上传
         */
        int IS_NOT_UPLOAD = 0;
        /**
         * 已经上传
         */
        int IS_UPLOADED = 1;
    }

    /**
     * 任务执行类型
     */
    interface JOB_EXECUTE_TYPE {

        /**
         * 初始数据上报
         */
        int UPDATE_INITDATA_REPORT = 1;
        /**
         * 详情数据上报
         */
        int UPDATE_DETAIL_REPORT = 2;
    }
}
